package com.suinian.qinghebackendproj.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  地址表
 *
 * @author 15239
 * @since 2024-11-22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "address", schema = "green")
public class Address implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    //地址编号
    @Id(keyType = KeyType.Auto)
    private Integer id;
    //省
    private String province;
    //市
    private String city;
    //区 / 县
    private String district;
    //镇 / 乡
    private String town;
    //详细地址
    private String detailedAddress;

}
